package com.jzhao.gper.command;

public class Test {
    public static void main(String[] args) {
        FtpServer ftpServer = new FtpServer();
        FtpController controller = new FtpController();
        System.out.println("单个命令执行");
        controller.excute(new PutCommand(ftpServer));
        System.out.println("");
        System.out.println("批量执行命令");
        controller.addCommand(new OpenCommand(ftpServer));
        controller.addCommand(new PutCommand(ftpServer));
        controller.addCommand(new GetCommand(ftpServer));
        controller.addCommand(new ByeCommand(ftpServer));
        controller.excutes();;
    }
}
